'use strict'
// 加载依赖
const router = require('koa-router')()
const routerPermission = require('middleware/routePermission')
const articleController = require('controllers/article/article')
const config = require('@config/config')
router

/**
 * @description: 修改文章
 */
  .put(`${config.api}/article/:id/edit`, routerPermission.checkHeader, articleController.update)

module.exports = router
